<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>New Page 2</title>
</head>
<script language=javascript>   
  var   theCurrentFocusForm=null;   
  function   changeCurrentFocusForm(formObj)   
  {   
  if(formObj==theCurrentFocusForm)   return;   
  if(theCurrentFocusForm!=null)   
  {   
  theCurrentFocusForm.submit2.disabled=true;   
  theCurrentFocusForm.submit3.disabled=true;   
  }   
  theCurrentFocusForm=formObj;   
  theCurrentFocusForm.submit2.disabled=false;   
  theCurrentFocusForm.submit3.disabled=false;   
  }   
    
  </script>
<body  
		         onload="document.forms[0].ysjg.select();document.forms[0].ysjg.focus();">
N个FORM（所有内容都一样），N不定，从数据库中取值，怎么样才能按到提交按钮？？ <br>
现在的只要光标一离开name为ysjg的text框，提交按钮就失效了？？  <br>
应改怎么改？ 多谢！！
<form name="form1">
  <input type=submit value="提交" name="submit2" onClick="alert('提交')"
				disabled>
  <input type=button value="dfasf" onClick="window.open()"
				name="submit3" disabled>
  <input type="text" name="ysjg" size="20" maxlength="30"
				onfocus="this.style.backgroundColor='#FFFFFF';changeCurrentFocusForm(this.form);"
				onblur="this.style.backgroundColor='#C0C0C0';"
				style="background-color:   #C0C0C0;color:rgb(0,0,0);" value="adfaf">
</form>
<form name="form1">
  <input type=submit value="提交" name="submit2" onClick="alert('提交')"
				disabled>
  <input type=button value="dfasf" onClick="window.open()"
				name="submit3" disabled>
  <input type="text" name="ysjg" size="20" maxlength="30"
				onfocus="this.style.backgroundColor='#FFFFFF';changeCurrentFocusForm(this.form);"
				onblur="this.style.backgroundColor='#C0C0C0';"
				style="background-color:   #C0C0C0;color:rgb(0,0,0);" value="adfaf">
</form>
<form name="form1">
  <input type=submit value="提交" name="submit2" onClick="alert('提交')"
				disabled>
  <input type=button value="dfasf" onClick="window.open()"
				name="submit3" disabled>
  <input type="text" name="ysjg" size="20" maxlength="30"
				onfocus="this.style.backgroundColor='#FFFFFF';changeCurrentFocusForm(this.form);"
				onblur="this.style.backgroundColor='#C0C0C0';"
				style="background-color:   #C0C0C0;color:rgb(0,0,0);" value="adfaf">
</form>
</body>
</html>
